<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>文章列表页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!--[if lt IE 9]>
        <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
        <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <!-- jquery -->
    <script src="public/js/jquery-2.0.3.min.js"></script>
    <!-- Bootstrap -->
    <link   href="public/css/bootstrap.min.css" rel="stylesheet">
    <script src="public/js/bootstrap.min.js"></script>

  </head>
  
  <body>
	<div class="table-responsive">
		<table class="table table-bordered table-hover">
			<thead>
				<tr>
					<th><input type="checkbox"></th>
					<th>编号</th>
					<th>标题</th>
					<th>分类</th>
					<th>日期</th>
					<th>作者</th>
					<th style="text-align: center;">操作</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="list" id="article" status="aSequence">
				<tr>
        			<td><input type="checkbox"></td>
        			<td><s:property value="#aSequence.count"/></td>
					<td><a href="#"><s:property value="#article.title"/></a></td>
					<td>Java</td>
					<td><s:property value="#article.createdate"/></td>
					<td><s:property value="#article.author"/></td>
					<td style="text-align: center;">
						<div class="btn-group">
							<button type="button" class="btn btn-info btn-xs">查看</button>
							<button type="button" class="btn btn-primary btn-xs">編輯</button>
							<button type="button" class="btn btn-danger btn-xs">刪除</button>
						</div>
					</td>
				</tr>
				</s:iterator>
			</tbody>
		</table>
	</div>
  </body>
</html>
